package models

import "gorm.io/gorm"

type Pet struct {
	gorm.Model
	Name    string `gorm:"type:varchar(30);not null; comment:名字"`
	Address string `gorm:"type:varchar(30);not null; comment:地址"`
	Img     string `gorm:"type:varchar(30);not null; comment:图片"`
	AsId    int    `gorm:"type:int;comment:id"`
	As      As     `gorm:"foreignKey:AsId"`
}
type As struct {
	gorm.Model
	Name string `gorm:"type:varchar(30);not null; comment:名字"`
}
